<%--
  Created by IntelliJ IDEA.
  User: Jovi
  Date: 2018/4/10
  Time: 上午10:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%
    session.setAttribute("uid", "admin");
    Object o = application.getAttribute("count");
    if (o == null) {
        application.setAttribute("count", 1);
    } else {
        application.setAttribute("count", (Integer)o+1);
    }
%>
<html>
<head>
    <title>Title</title>
</head>
<body>
用户名：${sessionScope.uid}
网站访问次数：${applicationScope.count}
网站访问次数：${count}
</body>
</html>
